import request from '@/utils/request'

// 查询科室医生信息列表
export function listHospitalDepartmentDoctor(query) {
  return request({
    url: '/business/hospitalDepartmentDoctor/list',
    method: 'get',
    params: query
  })
}

// 查询科室医生信息所有列表
export function listAllHospitalDepartmentDoctor(query) {
  return request({
    url: '/business/hospitalDepartmentDoctor/listAll',
    method: 'get',
    params: query
  })
}

// 查询科室医生信息详细
export function getHospitalDepartmentDoctor(id) {
  return request({
    url: '/business/hospitalDepartmentDoctor/getInfo/' + id,
    method: 'get'
  })
}

// 新增科室医生信息
export function addHospitalDepartmentDoctor(data) {
  return request({
    url: '/business/hospitalDepartmentDoctor/add',
    method: 'post',
    data: data
  })
}

// 修改科室医生信息
export function updateHospitalDepartmentDoctor(data) {
  return request({
    url: '/business/hospitalDepartmentDoctor/edit',
    method: 'post',
    data: data
  })
}

// 删除科室医生信息
export function delHospitalDepartmentDoctor(id) {
  return request({
    url: '/business/hospitalDepartmentDoctor/remove/' + id,
    method: 'get'
  })
}
